Skip to content

Conversation

wbx-github
Copy link

Some cross-compiler toolchains dislike the usage of -o /dev/null and fail with: ld: final link failed: file truncated

As stdin and stdout is already redirected to /dev/null there is no need for gcc -o /dev/null.

This fixes an Buildroot autobuild failure for libsepol package: http://autobuild.buildroot.net/results/72b/72baaab4658254f4c5b3348298af1d5c891cacd6/

Some cross-compiler toolchains dislike the usage of -o /dev/null and fail
with: ld: final link failed: file truncated

As stdin and stdout is already redirected to /dev/null there is
no need for gcc -o /dev/null.

This fixes an Buildroot autobuild failure for libsepol package:
http://autobuild.buildroot.net/results/72b/72baaab4658254f4c5b3348298af1d5c891cacd6/

Signed-off-by: Waldemar Brodkorb <[email protected]>
@cgzones
Copy link
Contributor

cgzones commented Aug 24, 2024

It might be binutils bug, similar to the hppa one fixed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants